package com.dashu.base.enums;



import java.util.HashMap;
import java.util.Map;

public enum Week {

    WEEK1( "星期一"),
    WEEK2("星期二"),
    WEEK3("星期三"),
    WEEK4("星期四"),
    WEEK5("星期五"),
    WEEK6("星期六"),
    WEEK7("星期日");


    private String name;

    Week(String name) {
        this.name = name;
    }

    public static final Map<String, Week> map = new HashMap<>();

    static {
        for (Week s : Week.values()) {
            map.put(s.name(), s);
        }
    }
}
